package com.zqq.user.service.respository

import com.zqq.baselibrary.http.RetrofitFactory
import com.zqq.baselibrary.http.rx.BaseResp
import com.zqq.user.service.api.UploadApi
import rx.Observable
import javax.inject.Inject

/**
 * 上传相关 数据层
 * wc
 * @author zqq on 2018/7/30
 */
class UploadRepository @Inject constructor() {


    //获取上传凭证,如OSS
    fun getUploadToken(): Observable<BaseResp<String>> {
        return RetrofitFactory.instance
                .create(UploadApi::class.java)
                .getUploadToken()
    }

}